//
//  HSClassTitleCell.swift
//  Home_School_08
//
//  Created by 张晓林 on 2016/12/28.
//  Copyright © 2016年 张晓林. All rights reserved.
//

import UIKit

class HSClassTitleCell: UICollectionViewCell {
    // 全局属性
    let titleL = UILabel()
    
    // 接受模型数据的属性
    var model: HSClassTableModel? {
        didSet {
            titleL.text = model?.courseName
        }
    }
    
    override init(frame: CGRect) {
        super.init(frame: frame)
        // 添加一个label
        titleL.frame = contentView.bounds
        titleL.text = "语文"
        titleL.textAlignment = .center
        titleL.font = UIFont.systemFont(ofSize: 15)
        titleL.textColor = #colorLiteral(red: 0.1764705926, green: 0.01176470611, blue: 0.5607843399, alpha: 1)
        contentView.addSubview(titleL)
    }
    
    required init?(coder aDecoder: NSCoder) {
        super.init(coder: aDecoder)
    }
}













